Procedures / Functions

Procedures and functions are schema objects that consist a set of SQL statements and stored in the server. In the main window, click Function Function to open the function object list.

Function Designer

Function Designer is the basic Navicat tool for working with procedures/functions. You can enter a valid SQL statement in the Definition tab. To customize the view of the editor and find out more features for SQL editing, see SQL Editor for details.

The Code Outline pane displays information about the procedure/function including parameters, code body, etc. If the Code Outline pane is hidden, choose View -> Code Outline.

Note: Available only in Non-Essentials Edition.

Button

Description

Refresh

Refresh the code outline.

Highlight

Turn mouse over highlight on or off.

Detail

Show the detail view of the code outline.

Sort

Toggle sorting by position.

Expand

Expand the selected item.

Collapse

Collapse the selected item.

Results

To execute the procedure/function, click Run on the toolbar. If the SQL statement is correct, the statement will be executed and, if the statement is supposed to return data, the DBMS Output tab opens with the data returned. If an error occurs while executing the procedure/function, execution stops, the appropriate error message is displayed. If the procedure/function requires input parameters, the Input Parameters dialog will pop up. Check the Raw Mode option to pass the inputted values to the procedure/function without quotation marks.

Note: Navicat supports to return 10 result sets.

Debug (Available only in Non-Essentials Edition)

You can add/remove breakpoints for debugging by clicking Breakpoint in the grey area beside each statement.

Click Debug on the toolbar to launch the Oracle Debugger. Enter the input parameters if necessary.